import request from '@/utils/request'

export const uploadFile = (data) => {
  return request({
    url: '/szyd/upload',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}

export const downloadFile = (params) => {
  return request({
    url: '/szyd/download',
    method: 'get',
    responseType: 'blob',
    params
  })
}

export const getNumber = () => {
  return request({
    url: '/system/auditLog/untreatedSize',
    method: 'get'
  })
}
